<nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="container">
        <div class="navbar-header">
            <!-- Collapsed Hamburger -->
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#app-navbar-collapse">
                <span class="sr-only">Toggle Navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <!-- Branding Image -->
            <a class="navbar-brand active" href="/">
                <img src="/logoPackage/logo56x56white.png"
                     width="35"
                     height="35" alt="trytv.org logo">
            </a>
        </div>

        <div class="collapse navbar-collapse navbar-warning-collapse" id="app-navbar-collapse">
            <!-- Left Side Of Navbar -->
            <ul class="nav navbar-nav">
                <li class={{ Request::is('/') ? 'active' : '' }} ><a href={{url('/')}}>今日美剧</a></li>
                <li class='active'><a href="http://video.trytv.org" target="_blank">在线看</a></li>

                <li class='active'><a href="//www.mojotv.cn" target="_blank">美剧资讯</a></li>
                <li class="dropdown">
                    <a href="/" data-target="#" class="dropdown-toggle" data-toggle="dropdown">资源分类
                        <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li class={{ Request::is('episodeByBaidduPan') ? 'active' : '' }}><a
                                    href={{url('episodeByBaidduPan')}}>百度网盘</a></li>
                        <li class={{ Request::is('episodeByCooked') ? 'active' : '' }}><a
                                    href={{url('episodeByCooked')}}>双语字幕</a></li>
                        <li class={{ Request::is('episodeByMovie') ? 'active' : '' }}><a href={{url('episodeByMovie')}}>电影</a>
                        </li>
                        <li class={{ Request::is('episodeByDocumentary') ? 'active' : '' }}><a
                                    href={{url('episodeByDocumentary')}}>纪录片</a></li>
                        <li class={{ Request::is('episodeByTalkShow') ? 'active' : '' }}><a
                                    href={{url('episodeByTalkShow')}}>脱口秀</a></li>
                        <li class={{ Request::is('episodeByBritain') ? 'active' : '' }}><a
                                    href={{url('episodeByBritain')}}>英剧</a></li>
                        <li class={{ Request::is('episodeByJapan') ? 'active' : '' }}><a href={{url('episodeByJapan')}}>日剧</a>
                        </li>
                        <li class={{ Request::is('episodeByKorean') ? 'active' : '' }}><a
                                    href={{url('episodeByKorean')}}>韩剧</a></li>
                        <li class={{ Request::is('episodeByThailand') ? 'active' : '' }}><a
                                    href={{url('episodeByThailand')}}>泰剧</a></li>
                    </ul>
                </li>

                <li class={{ Request::is('hotMovies') ? 'active' : '' }}><a href={{url('hotMovies')}}>电影资源</a></li>
                <li class={{ Request::is('hotShows') ? 'active' : '' }}><a href={{url('hotShows')}}>最热美剧</a></li>
                <li class={{ Request::is('showSortedOutWall') ? 'active' : '' }}><a href={{url('showSortedOutWall')}}>国外资源</a>
                </li>
                <li class={{ Request::is('showSortedInWall') ? 'active' : '' }}><a
                            href={{url('showSortedInWall')}}>国内资源</a>
                </li>


            </ul>


            <form class="navbar-form navbar-right" role="search" method="get" action="/search">
                <div class="form-group">
                    <input type="text" class="form-control col-xs-12" placeholder="美剧搜索" name="keyword" value="{{empty($_GET['keyword'])?'':$_GET['keyword']}}">
                </div>
            </form>

            <ul class="nav navbar-nav navbar-right">
                @if (Auth::guest())
                    <li><a href="{{ url('/login') }}">登陆</a></li>
                    <li><a href="{{ url('/register') }}">注册</a></li>
                @else
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            {{ Auth::user()->name }} <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="{{ url('/logout') }}">注销</a></li>
                            @if(Auth::id() == 1)
                                <li><a href="{{ url('/article') }}">管理</a></li>
                            @endif
                        </ul>
                    </li>
                @endif
            </ul>

        </div>
    </div>
</nav>


